// 用于放home模块对用的数据
// rxr 快捷健 用于生成reducer
const initialState = {
    address:"beijing",
    arr:[],
    name:"zhangsn"
}

export default (state = initialState, {type,payload}) => {
    let newstate = JSON.parse(JSON.stringify(state))
  switch (type) {

  case "setname":
    newstate.name = "lisi"
    return newstate
  case "getlist" :
      newstate.arr = payload
      return newstate
  default:
    return state
  }
}
